layui.define([ 'form', 'laydate', 'table' ], function(exports) {
    var form = layui.form;
    var laydate = layui.laydate;
    var table = layui.table;
    var aodIndustryDataTable = null;
    var view ={
        init:function(){
            this.initTable();
            this.initSearchForm();
            this.initToolBar();
            window.dataReload = function(){
                Lib.doSearchForm($("#searchForm"),aodIndustryDataTable)
            }
        },
        initTable:function() {
            aodIndustryDataTable = table.render({
                elem : '#aodIndustryDataTable',
                height : Lib.getTableHeight(1),
                method : 'post',
                url : Common.ctxPath + '/aod/aodIndustryData/nonList.json'
                ,page : Lib.tablePage // 开启分页
                ,limit : 10,
                cols : [ [ // 表头
                {
                    field : 'label',
                    title : '标签名称',
                    fixed:'left',
                    width : 200
                }, 
                {
                    field : 'labelNum',
                    title : '标签量',
                    width : 200
                }
                ] ]

            });
            
        },
        	
        initSearchForm:function(){
            Lib.initSearchForm($("#searchForm"),aodIndustryDataTable,form);
        },
        initToolBar:function(){
            toolbar = {

            };
            $('.ext-toolbar').on('click', function() {
                var type = $(this).data('type');
                toolbar[type] ? toolbar[type].call(this) : '';
            });
        }
	}
    exports('nonIndex',view);
	
});